package com.xcity.pomelo.request;

import com.alibaba.fastjson.annotation.JSONField;
import com.xcity.pomelo.PomeloRoute;

import naga.x.net.impl.pomelo.PomeloMessage;
import naga.x.net.impl.pomelo.PomeloPacket;

@PomeloMessage(route = PomeloRoute.PLAYER_LOAD)
public class PlayerLoadRequest extends PomeloPacket implements IPlayerCreateRequest {

	private String uid;
	private String name; // 玩家名
	private String city;
	private String province;
	private String headimgurl;
	private byte sex;
	@JSONField(name = "fromPid")
	private String inviter;

	public String getUid() {
		return uid;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}

	@Override
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getHeadimgurl() {
		return headimgurl;
	}

	public void setHeadimgurl(String headimgurl) {
		this.headimgurl = headimgurl;
	}

	@Override
	public byte getSex() {
		return sex;
	}

	public void setSex(byte sex) {
		this.sex = sex;
	}

	@Override
	public String getIcon() {
		return headimgurl;
	}

	public void setInviter(String inviter) {
		this.inviter = inviter;
	}

	@Override
	public String getInviter() {
		return inviter;
	}

}
